package summer_vacation.cullen.three10;

import java.util.Arrays;

/**
 * Created by Cullen on 2015/8/13.
 */
public class N36 {
    public static void main(String[] args) {
        int a=555555;
        int b[]=new int[100];
        b[0]=0;
        int i=0;
        for (int x=1;x<a;x++){
            if (a%x==0 && x>=100 && x<=999){
                b[i]=x;
                i=i+1;
                System.out.println(x + " ");
            }
        }
        System.out.println(" ");
        Arrays.sort(b);
        System.out.print("最大值是："+b[99]);
    }
}
